/**
 * Copyright &copy; 2012-2014 <a href="https://github.com.jims.base">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.patient.health.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.patient.health.dao.AllergyRecDao;
import com.jims.master.modules.patient.health.entity.AllergyRec;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 过敏Service
 * @author xueyx
 * @version 2017-07-20
 */
@Service
@Transactional(readOnly = true)
public class AllergyRecService extends CrudService<AllergyRecDao, AllergyRec> {

	@Autowired
	AllergyRecDao allergyRecDao;

	@Override
    public Page<AllergyRec> findPage(Page<AllergyRec> page, AllergyRec allergyRec) {
		return super.findPage(page, allergyRec);
	}

	public List<AllergyRec> findByBaseId(String baseid){
		return allergyRecDao.findByBaseId(baseid);
	}

}